﻿
using Web;
using Web.Services.Cache;
using log4net;
using log4net.Repository;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;

namespace Utility
{

    public class AccessToken
    {
        public static string AccessTokenName = "access_token";
        /// <summary>
        /// 生成token
        /// </summary>
        /// <returns></returns>
        public static string GetAccessToken()
        {
            string str = Guid.NewGuid().ToString().ToUpper().Replace("-", "");

            return str;
        }
    }

    /// <summary>
    /// 阿里短信
    /// </summary>
    public class AliSendSmsStrings
    {
        public static string AccessKeyId = "LTAI4FmsWcnVjchvbK2omNCJ";
        public static string AccessSecret = "TBdxk6B71tLeNmTpdKkq5qeyf3SC8w";
        public static string SignName = "精工控股集团有限公司";
        public static string RegisterTemplateCode = "SMS_176880333"; //注册验证码模板
        public static string ResetTemplateCode = "SMS_176880332"; //重置密码验证码模板
    }

    public class Constant
    {
        public static string RegisterName = "注册";
        public static string ResetName = "密码找回";
    } 
   
  
    public class LogMessages
    {
        public static class RegiterMessages
        {
            public static String Registered = "该手机号已经注册，如忘记密码，请点击 <a href='/Login/Forget' style='color: red'>忘记密码</a> 进行密码重置";

            public static String NewRegister = "该手机号未注册，请点击 <a href='/Login/Register' style='color: red'>注册帐号</a> 进行账号注册";

            public static String HasCode = "请查验是否已收到验证码，验证码30分钟内有效，请勿频繁注册";

            public static String CodeExpired = "验证码已过期或输入有误，请检查";

            public static String CodeError = "验证码已过期或输入有误，请检查";

        }
        public static class SystemMessages
        {
            public static string SystemError = "系统出错，请刷新页面后重试";
        }

    }
}

